


// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )


using System;
using System.Collections.Generic;
using System.Web;
using BussinessBaseTypes;


namespace DatabaseComponent
{
    [Serializable]
    public partial class Persons :BusinessBase<Persons>
    {
        System.Int64 _ID = -1;
        public System.Int64 ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        System.String _PersonName = "";
        public System.String PersonName
        {
            get { return _PersonName; }
            set { _PersonName = value; }
        }


        System.Byte[] _LastChanged = new System.Byte[0];

        public System.Byte[] LastChanged
        {
            get { return _LastChanged; }
            set { _LastChanged = value; }
        }
 

        public Persons()
        {
        }
        public Persons(System.String __PersonName)
        {
            _PersonName = __PersonName;
        }
        public Persons(System.Int64 __ID, System.String __PersonName,System.Byte[] __LastChanged)
        {
            _ID = __ID;
            _PersonName = __PersonName;
            _LastChanged = __LastChanged;
        }


        public override bool Equals(object obj)
        {
            if (obj is Persons)
            {
                Persons newObj = (Persons)obj;

                if (newObj.ID == this.ID)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }

            else
            {
                return false;
            }


        }












        #region IBusinessBase<Persons> Members

        public override int save(SaveTypes typeOfSave)
        {
            throw new NotImplementedException();
        }

        protected override int insert()
        {
            throw new NotImplementedException();
        }

        protected override int update()
        {
            throw new NotImplementedException();
        }

        protected override int delete()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
